package cn.shyouchi.wuguanjia.android.ui.attendance.report;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Eenie on 2016/11/29 at 16:09
 * Email: 472279981@qq.com
 * Des:
 */

public class StaffReportEntity {


    /**
     * resultCode : 0
     * resultMessage : {"data":{"newspaperpost_id":16,"date":"11:11:37","postnumber":2,"actualpostnumber":0,"remaining":2,"randomtime":"14:44","postsetting":{"jetlag":"10分钟","service":"常日班","postsetting_name":"大门岗","postsetting_info":"注意进出人员"}},"plan":[{"time":"13:44","actual":{}},{"time":"14:44","actual":{}}]}
     */

    private int resultCode;
    private ResultMessageBean resultMessage;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public ResultMessageBean getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(ResultMessageBean resultMessage) {
        this.resultMessage = resultMessage;
    }

    public static class ResultMessageBean {
        /**
         * data : {"newspaperpost_id":16,"date":"11:11:37","postnumber":2,"actualpostnumber":0,"remaining":2,"randomtime":"14:44","postsetting":{"jetlag":"10分钟","service":"常日班","postsetting_name":"大门岗","postsetting_info":"注意进出人员"}}
         * plan : [{"time":"13:44","actual":{}},{"time":"14:44","actual":{}}]
         */

        private DataBean data;
        private List<PlanBean> plan;

        public DataBean getData() {
            return data;
        }

        public void setData(DataBean data) {
            this.data = data;
        }

        public List<PlanBean> getPlan() {
            return plan;
        }

        public void setPlan(List<PlanBean> plan) {
            this.plan = plan;
        }

        public static class DataBean implements Parcelable {
            /**
             * newspaperpost_id : 16
             * date : 11:11:37
             * postnumber : 2
             * actualpostnumber : 0
             * remaining : 2
             * randomtime : 14:44
             * postsetting : {"jetlag":"10分钟","service":"常日班","postsetting_name":"大门岗","postsetting_info":"注意进出人员"}
             */

            private int newspaperpost_id;
            private String date;
            private int postnumber;
            private int actualpostnumber;
            private int remaining;
            private String randomtime;
            private PostsettingBean postsetting;

            public int getNewspaperpost_id() {
                return newspaperpost_id;
            }

            public void setNewspaperpost_id(int newspaperpost_id) {
                this.newspaperpost_id = newspaperpost_id;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }

            public int getPostnumber() {
                return postnumber;
            }

            public void setPostnumber(int postnumber) {
                this.postnumber = postnumber;
            }

            public int getActualpostnumber() {
                return actualpostnumber;
            }

            public void setActualpostnumber(int actualpostnumber) {
                this.actualpostnumber = actualpostnumber;
            }

            public int getRemaining() {
                return remaining;
            }

            public void setRemaining(int remaining) {
                this.remaining = remaining;
            }

            public String getRandomtime() {
                return randomtime;
            }

            public void setRandomtime(String randomtime) {
                this.randomtime = randomtime;
            }

            public PostsettingBean getPostsetting() {
                return postsetting;
            }

            public void setPostsetting(PostsettingBean postsetting) {
                this.postsetting = postsetting;
            }

            public static class PostsettingBean implements Parcelable {
                /**
                 * jetlag : 10分钟
                 * service : 常日班
                 * postsetting_name : 大门岗
                 * postsetting_info : 注意进出人员
                 */

                private String jetlag;
                private String service;
                private String postsetting_name;
                private String postsetting_info;

                public String getJetlag() {
                    return jetlag;
                }

                public void setJetlag(String jetlag) {
                    this.jetlag = jetlag;
                }

                public String getService() {
                    return service;
                }

                public void setService(String service) {
                    this.service = service;
                }

                public String getPostsetting_name() {
                    return postsetting_name;
                }

                public void setPostsetting_name(String postsetting_name) {
                    this.postsetting_name = postsetting_name;
                }

                public String getPostsetting_info() {
                    return postsetting_info;
                }

                public void setPostsetting_info(String postsetting_info) {
                    this.postsetting_info = postsetting_info;
                }

                @Override
                public int describeContents() {
                    return 0;
                }

                @Override
                public void writeToParcel(Parcel dest, int flags) {
                    dest.writeString(this.jetlag);
                    dest.writeString(this.service);
                    dest.writeString(this.postsetting_name);
                    dest.writeString(this.postsetting_info);
                }

                public PostsettingBean() {
                }

                protected PostsettingBean(Parcel in) {
                    this.jetlag = in.readString();
                    this.service = in.readString();
                    this.postsetting_name = in.readString();
                    this.postsetting_info = in.readString();
                }

                public static final Creator<PostsettingBean> CREATOR = new Creator<PostsettingBean>() {
                    @Override
                    public PostsettingBean createFromParcel(Parcel source) {
                        return new PostsettingBean(source);
                    }

                    @Override
                    public PostsettingBean[] newArray(int size) {
                        return new PostsettingBean[size];
                    }
                };
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.newspaperpost_id);
                dest.writeString(this.date);
                dest.writeInt(this.postnumber);
                dest.writeInt(this.actualpostnumber);
                dest.writeInt(this.remaining);
                dest.writeString(this.randomtime);
                dest.writeParcelable(this.postsetting, flags);
            }

            public DataBean() {
            }

            protected DataBean(Parcel in) {
                this.newspaperpost_id = in.readInt();
                this.date = in.readString();
                this.postnumber = in.readInt();
                this.actualpostnumber = in.readInt();
                this.remaining = in.readInt();
                this.randomtime = in.readString();
                this.postsetting = in.readParcelable(PostsettingBean.class.getClassLoader());
            }

            public static final Parcelable.Creator<DataBean> CREATOR = new Parcelable.Creator<DataBean>() {
                @Override
                public DataBean createFromParcel(Parcel source) {
                    return new DataBean(source);
                }

                @Override
                public DataBean[] newArray(int size) {
                    return new DataBean[size];
                }
            };
        }

        public static class PlanBean implements Parcelable {
            /**
             * time : 13:44
             * actual : {}
             */

            private String time;
            private ActualBean actual;
            private int statusCode;

            public String getTime() {
                return time;
            }

            public void setTime(String time) {
                this.time = time;
            }

            public ActualBean getActual() {
                return actual;
            }

            public void setActual(ActualBean actual) {
                this.actual = actual;
            }

            public int getStatusCode() {
                return statusCode;
            }

            public void setStatusCode(int statusCode) {
                this.statusCode = statusCode;
            }

            public static class ActualBean implements Parcelable {


                /**
                 * id : 4
                 * completetime : 13:20:08
                 * situation : 1
                 * completed : 1
                 * image : null
                 */

                private int id;
                private String completetime;
                private int situation;
                private int completed;
                private String image;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getCompletetime() {
                    return completetime;
                }

                public void setCompletetime(String completetime) {
                    this.completetime = completetime;
                }

                public int getSituation() {
                    return situation;
                }

                public void setSituation(int situation) {
                    this.situation = situation;
                }

                public int getCompleted() {
                    return completed;
                }

                public void setCompleted(int completed) {
                    this.completed = completed;
                }

                public String getImage() {
                    return image;
                }

                public void setImage(String image) {
                    this.image = image;
                }

                @Override
                public int describeContents() {
                    return 0;
                }

                @Override
                public void writeToParcel(Parcel dest, int flags) {
                    dest.writeInt(this.id);
                    dest.writeString(this.completetime);
                    dest.writeInt(this.situation);
                    dest.writeInt(this.completed);
                    dest.writeString(this.image);
                }

                public ActualBean() {
                }

                protected ActualBean(Parcel in) {
                    this.id = in.readInt();
                    this.completetime = in.readString();
                    this.situation = in.readInt();
                    this.completed = in.readInt();
                    this.image = in.readString();
                }

                public static final Creator<ActualBean> CREATOR = new Creator<ActualBean>() {
                    @Override
                    public ActualBean createFromParcel(Parcel source) {
                        return new ActualBean(source);
                    }

                    @Override
                    public ActualBean[] newArray(int size) {
                        return new ActualBean[size];
                    }
                };
            }


            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(this.time);
                dest.writeParcelable(this.actual, flags);
                dest.writeInt(this.statusCode);
            }

            public PlanBean() {
            }

            protected PlanBean(Parcel in) {
                this.time = in.readString();
                this.actual = in.readParcelable(ActualBean.class.getClassLoader());
                this.statusCode = in.readInt();
            }

            public static final Parcelable.Creator<PlanBean> CREATOR = new Parcelable.Creator<PlanBean>() {
                @Override
                public PlanBean createFromParcel(Parcel source) {
                    return new PlanBean(source);
                }

                @Override
                public PlanBean[] newArray(int size) {
                    return new PlanBean[size];
                }
            };
        }
    }
}
